<h1>Pengunjung</h1>

<div class="innerLR">

	<!-- Widget -->
	<div class="widget widget-heading-simple widget-body-gray">
		<div class="widget-body">
		
		

			<!-- Table -->
			<table class="dynamicTable tableTools table table-striped table-bordered table-condensed table-white">
			
				<!-- Table heading -->
				<thead>
					<tr>
						<th width="15">No</th>
						<th>No Tiket</th>
						<th>Tanggal Kunjungan</th>
						<th>Nama</th>
						<th>Asal</th>
						<th>Kategori</th>
						<th>Testimoni</th>
					</tr>
				</thead>
				<!-- // Table heading END -->
				
				<!-- Table body -->
				<tbody>
					
					<?php

					include "library/var-view.php";

					while($v = mysql_fetch_array($sql)){
						if($v['idkategori'] == 4)
							$Kategori = "Asing";
						else if($v['idkategori'] == 5)
							$Kategori = "Umum";
						else
							$Kategori = "Pelajar";
					?>

						<!-- Table row -->
						<tr class="gradeX">
							<td><?php echo $no; ?></td>
							<td><?php echo $v['no_tiket']; ?></td>
							<td><?php echo $v['tgl_kunjungan']; ?></td>
							<td><?php echo $v['nama']; ?></td>
							<td><?php echo $v['asal']; ?></td>
							<td><?php echo $Kategori; ?></td>
							<td>-</td>
						</tr>
						<!-- // Table row END -->

					<?php
					$no++;
					}
					?>
					
				</tbody>
				<!-- // Table body END -->
				
			</table>
			<!-- // Table END -->
			
			<?php include "library/pagination.php"; ?>

		</div>
	</div>
</div>